package com.push.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.push.common.annotation.Excel;
import com.push.common.core.domain.BaseEntity;

/**
 * 头条新闻对象 biz_toutiao_news
 *
 * @author yanxi
 * @date 2022-09-21
 */
public class BizToutiaoNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻唯一ID */
    private String id;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String title;

    /** 新闻描述 */
    @Excel(name = "新闻描述")
    private String description;

    /** 新闻内容 */
    private String contents;

    /** 封面图片 */
    private String picUrl;

    /** 新闻URL */
    private String url;

    /** 新闻来源 */
    @Excel(name = "新闻来源")
    private String source;

    /** 租户ID */
    private String tenantId;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCtime(Date ctime)
    {
        this.ctime = ctime;
    }

    public Date getCtime()
    {
        return ctime;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setContents(String contents)
    {
        this.contents = contents;
    }

    public String getContents()
    {
        return contents;
    }
    public void setPicUrl(String picUrl)
    {
        this.picUrl = picUrl;
    }

    public String getPicUrl()
    {
        return picUrl;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setSource(String source)
    {
        this.source = source;
    }

    public String getSource()
    {
        return source;
    }
    public void setTenantId(String tenantId)
    {
        this.tenantId = tenantId;
    }

    public String getTenantId()
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ctime", getCtime())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("contents", getContents())
            .append("picUrl", getPicUrl())
            .append("url", getUrl())
            .append("source", getSource())
            .append("tenantId", getTenantId())
            .toString();
    }
}
